﻿namespace System.WindowsCe.Mvp.DependencyInjection
{
	public static class DependencyResolver
	{
		private static IDependencyResolver _resolver;

		public static IDependencyResolver Current
		{
			get { return _resolver; }
		}

		public static void SetResolver(IDependencyResolver resolver)
		{
			if (resolver == null)
			{
				throw new ArgumentNullException("resolver");
			}
			_resolver = resolver;
		}
	}
}